package cn.tedu.spring.xml;

import cn.tedu.spring.example.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserXml {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("bean.xml");
        UserXml userXml =context.getBean(UserXml.class);
        UserXml userXml1 = context.getBean(UserXml.class);
        userXml.run();
        System.out.println(userXml);
    }
}
